import { BaseEntity } from '@cool-midway/core';
import { Column, Entity } from 'typeorm';

/**
 * 师傅工期表
 */
@Entity('biz_worker_work_dates', { comment: '师傅工期表' })
export class BizWorkerWorkDatesEntity extends BaseEntity {
  @Column({ comment: '师傅id' })
  workerId: number;

  @Column({ comment: '订单id' })
  orderId: number;

  @Column({ comment: '当前工期开始时间', type: 'date' })
  startDate: Date;
  @Column({ comment: '当前工期结束时间', type: 'date' })
  endDate: Date;
}
